import React from 'react'
import Home from '@/pages/Home'
import SignIn from "@/pages/SignIn";
import SignUp from "@/pages/SignUp";
import Author from "@/pages/Author.tsx";
import RtLayout from "@/layout/RtLayout.tsx"
import Dashboard from "@/pages/Dashborad";
import Detail from "@/pages/Detail";

const router = [
    {
        path: '/',
        element: <Home/>,
        meta: {title: '首页'}
    },
    {
        path: '/login',
        element: <SignIn/>,
        meta: {title: '登录'}
    },
    {
        path: '/register',
        element: <SignUp/>,
        meta: {title: '注册'}
    },
    {
        path: "/system",
        element: <Author><RtLayout/></Author>,
        children: [
            {
                path: "dashboard",
                element: <Dashboard/>,
                name: "首页",
                meta: {title: "首页"},

            },
            {
                path: "detail/:id",
                name: "详情id",
                element: <Detail/>,
            },
        ],
    }
]

export default router;

